package com.ws.hzuoj.admin.system.genetration.util;

import com.ws.common.util.StringUtils;
import com.ws.hzuoj.admin.system.genetration.entity.GenerationConfig;

public class generationUtils {
    public static void setDefault(GenerationConfig config){

        String tableName=config.getTableName();

        config.setId(tableName);
        config.setPackageName("com.ws.hzuoj.admin."+tableName.replace("_","."));
        config.setJavaTableName(StringUtils.camelMax(tableName));
        config.setControllerDirPre("/admin/"+tableName.replace("_","/"));
        config.setGeneratorDir("D:/代码生成工具");
        config.setAuthor("root");
    }
}
